function generate_error_plots()
   
    L = get_errors_list();
    
    frameCount = 350;
    maxError = 10;
    
    mark = {'-k '; '-.b '; '--r '; '-g '; '-.m '};
    colors{1} = [0 0 0];
    colors{2} = [0 0 1];
    colors{3} = [1.0 0.8 0.0];
    colors{4} = [0.8 0 0.8];
    colors{5} = [1 0 0];
    
    line_name{1} = 'seq-1';
    line_name{2} = 'seq-2';
    line_name{3} = 'seq-3';
    line_name{4} = 'seq-4';
    line_name{5} = 'seq-5';
    
    %line_name{1} = 'desktop-1';
    %line_name{2} = 'indoor-1';
    %line_name{3} = 'outdoor-1';
    %line_name{4} = 'desktop-2';
    %line_name{5} = 'indoor-2';
    %line_name{6} = 'outdoor-2';
        
    for iii = 1:size(L, 2)
        if (size(L{iii}, 2) > 0)
            L{iii}
            A = load(L{iii});
            %R = [R; A];
            
            B = [];
            
            for jjj = 1:size(A,1)
                if (A(jjj,2) < 9e99)
                   B = [B; A(jjj,:)]; 
                end
            end
            
            G{iii} = B;
            
        end
    end   
   
    % Now need to go through list and adjust the scores using your
    % mechanism
    
    close all
    H = figure
    hold on   
    xlabel('Frame index');
    ylabel('Reprojection error (pixels)');

    axis([0 frameCount 0 maxError]);
    draw_gray_grid(linspace(0,frameCount,(frameCount/50)+1), linspace(0,maxError,maxError+1));
    
    legendShown = 0;
    
    for aaa = 1:min(size(G,2),5)
        
        R = G{aaa};
       
        if (aaa < 4)
            %P = plot(R(:,1), R(:,2), mark{aaa}, 'LineWidth', 1);
        else
            %P = plot(R(:,1), R(:,2), mark{aaa}, 'LineWidth', 3);
        end
        
        P = plot(R(:,1), R(:,2), mark{aaa}, 'LineWidth', 2, 'Color', colors{aaa});
        
        %line_name = sprintf('seq-%d', aaa);
        
        if (legendShown == 0)
            L = legend(P, line_name{aaa}, 'Location', 'NorthWest', 'Orientation', 'vertical');
            legendShown = 1;
        else
            hold on
            legend('show')
            [LEGH,OBJH,OUTH,OUTM] = legend;
            L = legend([OUTH;P],OUTM{:}, line_name{aaa}, 'Location', 'NorthWest', 'Orientation', 'vertical');
        end

        set(L,'FontSize',10);
            
        
    end
    
    old_ticks = get(gca, 'ytick')';
    new_tick_labels = cellfun(@(x) sprintf('%1.1f',x), num2cell(old_ticks), 'uniformoutput', false);
    set(gca, 'yticklabel', new_tick_labels)
    
    %plot(1-precision, recall, '-b ', 'LineWidth', 2);
    
    
    c = clock;
    %timeString = sprintf('%04d-%02d-%02d-%02d-%02d-%02.0f', c(1), c(2), c(3), c(4), c(5), c(6));
    timeString = sprintf('%04d-%02d-%02d-%02d-%02d-%02.0f', c(1), c(2), c(3), c(4), c(5), c(6));
    % outputFilename = sprintf('%s/../../config/scorecard_%s.txt', mfilename('fullpath'), timeString)
    Q = mfilename('fullpath');
    aName = sprintf('%s/analysis/results/stability_%s.pdf', Q(1:end-30), timeString)
    
    save_to_file_if_possible(H, aName);
    
end